#ifndef AD
#define AD

#include "cJSON.h"

typedef struct
{
    int id;
    int ad_id;
    int type_id;
    char* path;
    char* sign;
    int index;
} AdResource;
  
typedef struct
{
    //广告本身信息
    int id;
    int template_id;
    int customer_id;
    char* start_time;
    char* end_time;
    int state;
    int index;

    //广告资源
    AdResource *adResources[3];
} Ad;

void handleAdList(cJSON* adListArray);

#endif